using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using QianJin.Models;

namespace QianJin.Controllers
{
    public class BaseController : Controller
    {
        protected UserInfo CurrentUser { get; private set; }

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);

            CurrentUser = (UserInfo)this.HttpContext.Session["user"];
        }
    }
}
